package com.dayang.model;

import java.sql.Timestamp;

/**
 * Userif entity. @author MyEclipse Persistence Tools
 */

public class Userif implements java.io.Serializable {

	// Fields

	private String id;
	private String username;
	private String userpassword;
	private Integer role;
	private Timestamp rgtime;
	private Timestamp logintime;
	private Timestamp logintimeout;

	// Constructors

	/** default constructor */
	public Userif() {
	}

	/** full constructor */
	public Userif(String username, String userpassword, Integer role, Timestamp rgtime, Timestamp logintime, Timestamp logintimeout) {
		this.username = username;
		this.userpassword = userpassword;
		this.role = role;
		this.rgtime = rgtime;
		this.logintime = logintime;
		this.logintimeout = logintimeout;
	}

	// Property accessors

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getUserpassword() {
		return this.userpassword;
	}

	public void setUserpassword(String userpassword) {
		this.userpassword = userpassword;
	}

	public Integer getRole() {
		return this.role;
	}

	public void setRole(Integer role) {
		this.role = role;
	}

	public Timestamp getRgtime() {
		return this.rgtime;
	}

	public void setRgtime(Timestamp rgtime) {
		this.rgtime = rgtime;
	}

	public Timestamp getLogintime() {
		return this.logintime;
	}

	public void setLogintime(Timestamp logintime) {
		this.logintime = logintime;
	}

	public Timestamp getLogintimeout() {
		return this.logintimeout;
	}

	public void setLogintimeout(Timestamp logintimeout) {
		this.logintimeout = logintimeout;
	}

	@Override
	public String toString() {
		return "Userif [id=" + id + ", username=" + username
				+ ", userpassword=" + userpassword + ", role=" + role
				+ ", rgtime=" + rgtime + ", logintime=" + logintime
				+ ", logintimeout=" + logintimeout + "]";
	}

}